    // 为学号表生成随机数据
    const mock = require("mockjs")
    require("../models/relation")
    const {StudentID} = require("../models/StudentID")
    let set = new Set();
    for(let i = 0; i< 1003; i++){
        set.add(mock.mock("@integer(100000000,999999999)"))
    }
    
    const arr = [...set]
    const classInfoIdArr = []
    for(let i = 1; i < 31; i++){
        classInfoIdArr.push(i)
    }
    const StudentIDList = mock.mock({
        "datas|1000":[
            {
                "id|+1": 1,
                "studentId|+1":arr,
                "studentName": "@cname",
                "classInfoId|+1": classInfoIdArr 
            }
        ]
    }).datas
    StudentID.bulkCreate(StudentIDList).then(data => {
        console.log(data);
    })



